package com.zy.edu.service;

import com.zy.edu.bean.InputParam;
import com.zy.edu.bean.School;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author HuangHaiShui
 * @since 2021-07-13
 */
public interface SchoolService extends IService<School> {
    public Map saveOrUpdate(School school);
    public Map list(School school, InputParam inputParam);
    public Map dele(School school);
    public List<School> findSchoolAndClassByJurisId(String jurisId);

    /**
     * @Author: HuangHaiShui 
     * @Description:根据辖区删除下属所有校区
     * @Date: 10:25 2021/7/21
     * @param inputParam: 
     * @return: void
     **/
    Map deleByJruisId(InputParam inputParam);
    Map getByJurisId(String jurisId, String userId);

    void initSystemData();

    Map getById(School school, InputParam inputParam);

    //查询学校总数
    Integer getCountByParam(InputParam inputParam);
}
